//
//  PresidentDetailController.h
//  UIViewSamples
//
//  Created by Sang-don Lee on 11. 11. 8..
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#define kNumberOfEditalbeRows 4
#define kNameRowIndex         0
#define kFromYearRowIndex     1
#define kToYearRowIndex       2
#define kPartyIndex           3
#define kLabelTag             4096

#import <Foundation/Foundation.h>

@class President;

@interface PresidentDetailController : UITableViewController <UITextFieldDelegate>

@property (nonatomic, retain) President *president;
@property (nonatomic, retain) NSArray *fieldLabels;
@property (nonatomic, retain) NSMutableDictionary *tempValues;
@property (nonatomic, retain) UITextField *textFieldBeingEdited;

- (IBAction)cancel:(id)sender;
- (IBAction)save:(id)sender;
- (IBAction)textFieldDone:(id)sender;

@end
